<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
<head>
<title> Modify Info Page</title>
</head>
<body>
<h:form>
    <h:outputLabel value="Modify #{userBean.accountInfo.firstname} Login Info " />
<br></br>
<br></br>
   <h:panelGrid columns="3"  style="margin-bottom:10px" cellpadding="5">  
      <h:outputText value="Location Preference :"></h:outputText>
      <h:outputText value=" #{userBean.preferenceInfo.location} "></h:outputText>
      <h:selectOneMenu value="#{modifyPreference.entered_location}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="No Preference" itemValue="NO PREFERENCE" />
          <f:selectItem itemLabel="Close" itemValue="CLOSE" />
          <f:selectItem itemLabel="Far" itemValue="FAR" />
      </h:selectOneMenu>

      <h:outputText value="School Type Preference :"></h:outputText>
      <h:outputText value=" #{userBean.preferenceInfo.pubpri} "></h:outputText>
      <h:selectOneMenu value="#{modifyPreference.entered_pubpri}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="No Preference" itemValue="NO PREFERENCE" />  
          <f:selectItem itemLabel="Public" itemValue="PUBLIC" />  
          <f:selectItem itemLabel="Private" itemValue="PRIVATE" />  
      </h:selectOneMenu>

      <h:outputText value="Size of School Preference :"></h:outputText>
      <h:outputText value=" #{userBean.preferenceInfo.size} "></h:outputText>
      <h:selectOneMenu value="#{modifyPreference.entered_size}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="No Preference" itemValue="NO PREFERENCE" />
          <f:selectItem itemLabel="Small" itemValue="SMALL" />
          <f:selectItem itemLabel="Medium" itemValue="MEDIUM" />
          <f:selectItem itemLabel="Large" itemValue="LARGE" />
      </h:selectOneMenu>

      <h:outputText value="Male/Female Ratio Preference :"></h:outputText>
      <h:outputText value=" #{userBean.preferenceInfo.sexratio} "></h:outputText>
      <h:selectOneMenu value="#{modifyPreference.entered_sexratio}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="No Preference" itemValue="NO PREFERENCE" />
          <f:selectItem itemLabel="Even" itemValue="EVEN" />
          <f:selectItem itemLabel="More Female" itemValue="MORE FEMALE" />
          <f:selectItem itemLabel="More Male" itemValue="MORE MALE" />
      </h:selectOneMenu>

<br></br>
      <h:commandButton value="  Enter  " 
                   action="#{modifyPreference.savePreferenceInfo}"/>
    </h:panelGrid>
    </h:form>
    <h:form>
    <h:commandButton value="Return to Main" 
                     action="#{commonBean.returnToMain}"/>
    </h:form>
</body>
</html>